package jyj.springmvc.learning.controller;

/**
 * @Author 老顽固小可爱
 * @Date 2022/12/12 14:47
 * @Version 1.0
 */

import jyj.springmvc.learning.bean.Supermarket;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author C语言中文网
 */
@Controller
public class MarketController {
    @RequestMapping(value = "/market", method = RequestMethod.POST)
    public String login(Supermarket market, Model model) {
        model.addAttribute("market", market);
        return "success";
    }
}
